﻿using System;
using System.IO;
using Topshelf;

namespace gt.webapi.core.sample
{
    class Program
    {
        static void Main(string[] args)
        {
            log4net.Config.XmlConfigurator.Configure(new FileInfo(AppDomain.CurrentDomain.BaseDirectory + "log4net.config"));
            HostFactory.Run(x =>
            {
                x.Service<ServiceRunner>();
                x.SetDescription("gt.webapi.core.sample");
                x.SetDisplayName("gt.webapi.core.sample");
                x.SetServiceName("gt.webapi.core.sample");
            });
        }
    }
}
